<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/11/8
 * Time: 9:22
 */

namespace app\admin\model;


use Yansongda\Pay\Gateways\Alipay\Alipay;

class Pay
{

    protected $pay;
    protected $config;

    public function __construct($type)
    {
        if($type == 'wx'){
            $w = \Yansongda\Pay\Pay::alipay()->web();
            $w->pay();
        }
    }

}